package org.zn.quality.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.zn.quality.entity.po.QualityResultPo;

public interface QualityResultMapper {
    int deleteByPrimaryKey(Long id);

    int insert(QualityResultPo row);

    QualityResultPo selectByPrimaryKey(Long id);

    List<QualityResultPo> selectAll();

    int updateByPrimaryKey(QualityResultPo row);
    
    List<QualityResultPo> selectStrategyResult(@Param("strategyId") Long strategyId,@Param("startTime") Date startTime,@Param("warning") Integer warning);
    
    List<QualityResultPo> selectJobStrategyResult(@Param("jobId") Long jobId,@Param("startTime") Date startTime,@Param("warning") Integer warning);
    
}